package com.jourwon.designpattern.j2ee.businessdelegate;

/**
 *
 *
 * @author JourWon
 * @date 2019/7/17 16:44
 */
public class BusinessLookUp {

    public BusinessService getBusinessService(String serviceType) {
        if ("EJB".equalsIgnoreCase(serviceType)) {
            return new EjbServiceImpl();
        } else {
            return new JmsServiceImpl();
        }
    }

}
